<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=1" >
<title>FWJSBridgeDemo</title>
<meta name="description" content="">
<meta name="keywords" content="">
<script type="text/javascript" src="./WebViewJavascriptBridge.js"></script>
<script type="text/javascript" src="./jem.js"></script>
<script type="text/javascript">
    this.WebViewJavascriptBridge.registerHandler('wellSign', function(data, responseCallback) {
        console.log('ObjC called testJavascriptHandler with', data)
        var responseData = { 'Javascript Says':'Right back atcha!' }
         console.log('JS responding with', responseData)
                                                 
        responseCallback(responseData)
    })
    
</script>
<script>
function previewFileJs()
{
 var filePath =$('#filePath').val();
 var previewType =$('#previewType').val();
 var wpskey =$('#wpskey').val();
emClient.previewFile({'filePath':filePath,'wpsKey':wpskey,'previewType': previewType,'success':function (argument) {
        console.log('success')
        console.log(JSON.stringify(argument));
        alert(JSON.stringify(argument))
        },'fail':function (argument) {

        console.log('fail')
        console.log(argument);
        /* body... */
        },'cancel':function (argument) {

        console.log('cancel')
        console.log(argument);
        alert(JSON.stringify(argument))
        /* body... */
        },'complete':function (argument) {
        console.log('complete')
        console.log(argument);
        /* body... */
        }})
}
</script>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>








</head>
<body style="height: 100%;width: 100%">

<p style="color:black; text-align:center">工作台</p>
<br>
<br>
   <div onclick="emClient.getLocation({'timeout':3,'locationType':'','needGeocode':true,'success':function (argument) {
   	console.log('success')
   	console.log(JSON.stringify(argument));
   	alert(JSON.stringify(argument))
   },'fail':function (argument) {

console.log('fail')
   	console.log(argument);
   	/* body... */
   },'cancel':function (argument) {

console.log('cancel')
   	console.log(argument);
   	/* body... */
   },'complete':function (argument) {
   	console.log('complete')
   	console.log(argument);
   	/* body... */
   },onLocationChanged:function (argument) {
       console.log('onLocationChanged')
       console.log(argument);
       /* body... */
   }})" style="color:black; text-align:center; width: 60%;height: 60%;margin-left:auto;
margin-right:auto; border:1px solid;
border-radius:25px;border-color: black;size: 5em">上班打卡</div>

   <br>

<!--    <br>-->
<!--   -->
<!--    <div onclick="emClient.clearAllCaches({'success':function (argument) {-->
<!--       console.log('success')-->
<!--&lt;!&ndash;       console.log(JSON.stringify(argument));&ndash;&gt;-->
<!--&lt;!&ndash;       alert(JSON.stringify(argument))&ndash;&gt;-->
<!--      },'fail':function (argument) {-->

<!--   console.log('fail')-->
<!--       console.log(argument);-->
<!--       /* body... */-->
<!--      },'cancel':function (argument) {-->

<!--   console.log('cancel')-->
<!--       console.log(argument);-->
<!--       /* body... */-->
<!--      },'complete':function (argument) {-->
<!--       console.log('complete')-->
<!--       console.log(argument);-->
<!--       /* body... */-->
<!--      }-->
<!--      -->
<!--      })" style="color:black; text-align:center; width: 60%;height: 60%;margin-left:auto;-->
<!--   margin-right:auto; border:1px solid;-->
<!--   border-radius:25px;border-color: black;size: 5em">清空全部缓存</div>-->


<!--<br>-->

<!--    <div onclick="emClient.closeWindow({'targetId':'7|Nqp5Q65J','msgType':1,'msgInfo':{'content':'高卢雄鸡','title':'百度','url':'https://www.baidu.com','imageurl':'http://img.zcool.cn/community/0117e2571b8b246ac72538120dd8a4.jpg'},'success':function (argument) {-->
<!--      console.log('success')-->
<!--      console.log(JSON.stringify(argument));-->
<!--   },'fail':function (argument) {-->

<!--console.log('fail')-->
<!--      console.log(argument);-->
<!--      /* body... */-->
<!--   },'cancel':function (argument) {-->

<!--console.log('cancel')-->
<!--      console.log(argument);-->
<!--      /* body... */-->
<!--   },'complete':function (argument) {-->
<!--      console.log('complete')-->
<!--      console.log(argument);-->
<!--      /* body... */-->
<!--   },'type':'2','url':'https://www.baidu.com','iOSscheme':'mqq://'})" style="color:black; text-align:center; width: 60%;height: 60%;margin-left:auto;-->
<!--margin-right:auto; border:1px solid;-->
<!--border-radius:25px;border-color: black;size: 5em">关闭窗口</div> -->

<!--<br>-->

<div onclick="emClient.mailto({'mail':'992732160@qq.com','success':function (argument) {
    console.log('success')
    console.log(JSON.stringify(argument));
    alert(JSON.stringify(argument))
    },'fail':function (argument) {

    console.log('fail')
    console.log(argument);
    /* body... */
    },'cancel':function (argument) {

    console.log('cancel')
    console.log(argument);
    /* body... */
    },'complete':function (argument) {
    console.log('complete')
    console.log(argument);
    /* body... */
    }})" style="color:black; text-align:center; width: 60%;height: 60%;margin-left:auto;
    margin-right:auto; border:1px solid;
    border-radius:25px;border-color: black;size: 5em">发邮件</div>
<br>

<div onclick="emClient.tel({'tel':'12345678912','success':function (argument) {
    console.log('success')
    console.log(JSON.stringify(argument));
    alert(JSON.stringify(argument))
    },'fail':function (argument) {
    
    console.log('fail')
    console.log(argument);
    /* body... */
    },'cancel':function (argument) {
    
    console.log('cancel')
    console.log(argument);
    /* body... */
    },'complete':function (argument) {
    console.log('complete')
    console.log(argument);
    /* body... */
    }})" style="color:black; text-align:center; width: 60%;height: 60%;margin-left:auto;
    margin-right:auto; border:1px solid;
    border-radius:25px;border-color: black;size: 5em">拨打电话</div>

<br>
</body>
</html>
